<template>
  <div class="reportFormPage">
    <!--    <topOperation/>-->
    <div id="domid">
      <el-row>
        <el-col :span="5" :offset="19">
          <div class="pageNumBox">
            <span>第</span>
            <span>&nbsp;{{ form.page }}&nbsp;</span>
            <span>页，共</span>
            <span>&nbsp;{{ form.totalPage }}&nbsp;</span>
            <span>页</span>
          </div>
        </el-col>
      </el-row>
      <div class="topTwoBox">
        <div class="centerName">沥青闪点与燃点试验检测记录表（克利夫兰开口杯法）</div>
        <div class="codeText">
          <tr>JGLQ01008</tr>
        </div>
      </div>
      <div class="threeTopBox">
        <div class="threeItem1" style="width: 90px">检测单位名称：</div>
        <div class="threeItem2">
          <span>{{ form.jiancdwmc }}</span>
        </div>
        <div class="threeItem1" style="width: 65px">记录编号：</div>
        <div class="threeItem2">
          <el-input type="text" v-model="form.jilbh" class="height100 bg-white" />
        </div>
      </div>

      <!-- .........................1111111111111111111111111111111......................................................... -->
      <table border="1" height="220px" bordercolor="#000000" cellpadding="2" cellspacing="0" align="center">
        <tbody>
          <tr>
            <td height="25" align="center" width="15%">
              <span style="width: 90px; display: inline-block">工程名称</span>
            </td>
            <td width="35%" class="text-center">
              <span>{{ form.gongcmc }}</span>
            </td>
            <td align="center" width="15%">
              <span style="width: 90px; display: inline-block">工程部位/用途</span>
            </td>
            <td width="35%" class="text-center">
              <span>{{ form.gongcbwyt }}</span>
            </td>
          </tr>
          <tr>
            <td height="50" align="center">样品信息</td>
            <td style="word-wrap: break-word; word-break: break-all;text-align:left" colspan="3">
              <span>样品名称：</span>
              <span>{{ form.yangpmc }}</span>
              <span>；样品编号：</span>
              <el-input type="text" v-model="form.yangpbh" style="width: 42%; height: auto" />
              <span>；样品数量：</span>
              <span>{{ form.yangpsl }}</span>
              <span>；样品状态：</span>
              <span>{{ form.yangpzt }}</span>
              <span>；来样时间：</span>
              <span>{{ form.yangpsj }}</span>
            </td>
          </tr>

          <tr>
            <td height="25" align="center" width="15%">
              <span style="width: 90px; display: inline-block">试验检测日期</span>
            </td>
             <!-- <td width="35%" class="text-center">{{ form.shiyjcrq }}</td> -->                                            
 <td width="35%" class="text-center">
      <el-input v-model="form.shiyjcrq" />
</td>
            <td align="center" width="15%">
              <span style="width: 90px; display: inline-block">试验条件</span>
            </td>
            <td width="35%">
              温度：
              <el-input type="number" v-model="form.shiytjwd" class="height100" style="width: 15%" />
              ℃；湿度：
              <el-input type="number" v-model="form.shiytjsd" class="height100" style="width: 15%" />
              %RH
            </td>
          </tr>

          <tr>
            <td height="25" align="center" width="15%">
              <span style="width: 90px; display: inline-block">检测依据</span>
            </td>
            <td width="35%">
              <el-input type="text" v-model="form.jiancyj" class="height100 width100" />
            </td>
            <td align="center" width="15%">
              <span style="width: 90px; display: inline-block">判定依据</span>
            </td>
            <td width="35%">
              <el-input type="text" v-model="form.pandyj" class="height100 width100" />
            </td>
          </tr>

          <tr>
            <td height="30" align="center">主要仪器设备<br />名称及编号</td>
            <td colspan="3">
              <el-input type="textarea" @dblclick.native="showBsInstrumentView" :rows="2" v-model="form.zhuyyqsbmcjbh"
                class="height100 width100 mark" readonly>
              </el-input>
              <!-- <el-button type="text" @click="showBsInstrumentView"><i class="el-icon-search"></i></el-button> -->
            </td>
          </tr>
        </tbody>
      </table>

      <!-- .................................22222222222222222222222222222222............................................... -->
      <!-- 取样地点 -->
      <table cellpadding="1" cellspacing="0" bordercolor="#000000"
            style="width: 100%; border-right: 2px solid black; border-left: 2px solid black;  border-collapse: collapse;  height: 30px; text-align: center;"
            align="center" border="0" tbindex="0">
            <tr>
                <td align="center" height="24px"
                  style="border-right:1px solid black;border-bottom:1px solid black;">取样地点</td>
                <td bgcolor="white"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;"  v-model="form.quydd"/>
                </td>
                <td align="center" height="24px"
                  style="border-right:1px solid black;border-bottom:1px solid black;">沥青产地</td>
                <td bgcolor="white"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;"  v-model="form.liqcd"/>
                </td>
                <td align="center" height="24px"
                  style="border-right:1px solid black;border-bottom:1px solid black;">沥青种类及标号</td>
                <td bgcolor="white"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;"  v-model="form.liqzljbh"/>
                </td>
              </tr>
          </table>
          <!-- 沥青试验表格 -->
          <table cellpadding="1" cellspacing="0" bordercolor="#000000"
            style="width: 100%; border-right: 2px solid black; border-top: none; border-left: 2px solid black; border-bottom: 2px solid black; border-collapse: collapse; 
            height: 30px; text-align: center;"
            align="center" border="1" tbindex="0">
            <tbody>
              <tr trindex="0">
                <td  height="30">试验次数</td>
                <td  height="30">闪点温度(℃)</td>
                <td  height="30">闪点平均值(℃)</td>
                <td  height="30">燃点温度(℃)</td>
                <td  height="30">燃点平均值(℃)</td>
                <td  height="30">修正后闪点(℃)</td>
                <td  height="30">修正后燃点(℃)</td>
              </tr>
              <tr trindex="1">
                <td  height="30">第一次</td>
                <td bgcolor="white"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;" v-model="form.shand1"/>
                </td>
                <td bgcolor="white" rowspan="2"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;" v-model="form.shandpjz"/>
                </td>
                <td bgcolor="white"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;" v-model="form.rand1"/>
                </td>
                <td bgcolor="white" rowspan="2"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;" v-model="form.randpjz"/>
                </td>
                <td bgcolor="white" rowspan="2"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;" v-model="form.xiuzhsd"/>
                </td>
                <td bgcolor="white" rowspan="2"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;" v-model="form.xiuzhrd"/>
                </td>
              </tr>
              <tr trindex="2">
                <td  height="30">第二次</td>
                <td bgcolor="white"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;"  v-model="form.shand2"/>
                </td>
                <td bgcolor="white"
                  style="border-right:1px solid black;border-bottom:1px solid black;">
                  <el-input type="text" style="text-align:left;height:15px;" v-model="form.rand2"/>
                </td>
              </tr>
            </tbody>
          </table>
      <!-- .....................................................33333333333333333................................................... -->
      <table cellpadding="2" cellspacing="0" bordercolor="#000000" style="
          width: 100%;
          height: 600px;
          border-right: 2px solid black;
          border-left: 2px solid black;
          border-top-style: none;
          border-bottom: 2px solid black;
          border-collapse: collapse;
          margin: none;
        ">
        <tbody>
          <tr>
            <td height="30" align="center">附加声明：</td>
            <td colspan="3">
              <el-input type="textarea" :rows="2" v-model="form.fujsm" />
            </td>
          </tr>
        </tbody>
      </table>
      <!-- .................................44444444444............................................. -->
      <table border="0" cellpadding="0" cellspacing="0" align="center"
        style="width: 100%; border-collapse: collapse; height: 22px" class="transparent">
        <tbody>
          <tr>
            <td width="10%" align="right">检测：</td>
            <td width="15%" align="left"></td>
            <td width="10%" align="right">记录：</td>
            <td width="15%" align="left"></td>
            <td width="10%" align="right">复核：</td>
            <td align="left" width="15%"></td>
            <td width="10%">日期：</td>
            <td align="left" width="15%">
              <div style="display: inline-block; margin-left: 20px">年</div>
              <div style="display: inline-block; margin-left: 20px">月</div>
              <div style="display: inline-block ;margin-left: 20px">日</div>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <bs-instrument-view ref="bsInstrumentViewRef" @select="selectInstrument"></bs-instrument-view>

  </div>
</template>

<script>
import { getLqLqsdhrdjlbBsInfo } from "@/api/report_lq/lqLqsdhrdjlbBsInfo";
import BsInstrumentView from "@/views/dept/bsInstrument/BsInstrumentView.vue";
import decimal from "@/utils/big-decimal";
import Bus from '@/utils/bus';
export default {
  name: "lqsdhrdjlb",
  components: {
    BsInstrumentView,
  },
  props: {
    excelId: {
      type: [String, Number],
      default: () => ""
    },
  },
  data () {
    return {
      // 表单参数
      form: {
      },
    };
  },
  created () {
    this.getInfo()
    console.log('=====')
    console.log(this.excelId)
  },
  methods: {
    // 获取详情
    getInfo () {
     
      if (!this.excelId) {
        return
      }
      
      getLqLqsdhrdjlbBsInfo(this.excelId).then(response => {
        this.form = response.data;
      });
    },
    // 显示仪器列表
    showBsInstrumentView () {
      this.$refs.bsInstrumentViewRef.init(this.form.shebIds);
    },
    // 仪器选择
    selectInstrument (info) {
      this.form.zhuyyqsbmcjbh = info.label;
      this.form.shebIds = info.ids;
    },
    
    
  }
}
</script>

<style scoped>
  .td1 {
      width: calc(100% / 15 * 1);
  }

  .td2 {
      width: calc(100% / 15 * 2);
  }

  .td3 {
      width: calc(100% / 15 * 3);
  }

  .td5 {
      width: calc(100% / 15 * 5);
  }
</style>
